
import javax.annotation.Resource;

import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit38.AbstractTransactionalJUnit38SpringContextTests;
import org.springframework.test.context.transaction.TransactionConfiguration;

import com.jung.customer.model.Customer;
import com.jung.customer.service.CustomerService;


@ContextConfiguration(locations = {
		"/applicationContext.xml", 
		"/conf/spring/applicationContext-administrator.xml",
		"/conf/spring/applicationContext-customer.xml"	
		})
@TransactionConfiguration(defaultRollback = false)
public class ShareServiceTestCase extends AbstractTransactionalJUnit38SpringContextTests {

	
	@Resource
	private CustomerService customerService;
	/*
    public void testQueryAllEmployment(){
    	System.out.println(employmentService.queryEmploymentById(1));
    }
    */
	public void testAddCustomer(){
		Customer   customer=new Customer();
		customer.setAddress("ttt");
		System.out.println(customerService.addCustomer(customer));
		
	}
}
